package br.com.JZSolution.jpaUtil;

import java.util.Properties;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * Recria o banco.
 */
public class CriarTabelas {
	public static void main(String[] args) {
		Properties cfg = new Properties();
		cfg.setProperty("hibernate.hbm2ddl.auto", "create");
		EntityManagerFactory emf = Persistence.createEntityManagerFactory("stok",cfg);
		EntityManager em = emf.createEntityManager();
		em.close();
		emf.close();
	}
}
